package com.k4rthik.clipall.commons;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: k4rthik
 * Date: 3/24/12
 * Time: 1:12 PM
 */

public class PropertyHandler
{
    static Map<String, String> defaultProperties = null;

    public static int init()
    {
        defaultProperties = new HashMap<String, String>();

        defaultProperties.put("DEFAULT_SERVER_IP",     "127.0.0.1");
        defaultProperties.put("DEFAULT_SERVER_PORT",   "6066");
        defaultProperties.put("CLIPBOARD_REOWN_SLEEP", "200");
        defaultProperties.put("PROGRAM_ICON",          "../clipboard.png");
        defaultProperties.put("DEVELOPER_HOME_PAGE",   "http://code.google.com/p/clipb-share/");

        Logger.log(defaultProperties.size()+ " properties defined.", Level.INFO);

        return defaultProperties.size();
    }
    
    public static String get(String propName)
    {
        return defaultProperties.get(propName);
    }
}
